package com.teckteam.ptvsystem.controller;

import javax.swing.JOptionPane;

import com.teckteam.ptvsystem.view.PTVUserInterface;

/**
 * Exception class that presents a popup whenever the Scraper functionality
 * fails to complete successfully.
 * 
 * 
 */
public class ScrapeFailedException extends Exception
{
   public ScrapeFailedException()
   {
      JOptionPane
            .showOptionDialog(
                  PTVUserInterface.getInstance(),
                  "Failed to connect to server.  Please check your internet connection",
                  "Connection failed", JOptionPane.DEFAULT_OPTION,
                  JOptionPane.ERROR_MESSAGE, null, null, null);
   }
}
